package com.siyuanren.gcocp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WxActiveExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxActiveExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNull() {
            addCriterion("available is null");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNotNull() {
            addCriterion("available is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableEqualTo(Boolean value) {
            addCriterion("available =", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotEqualTo(Boolean value) {
            addCriterion("available <>", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThan(Boolean value) {
            addCriterion("available >", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("available >=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThan(Boolean value) {
            addCriterion("available <", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThanOrEqualTo(Boolean value) {
            addCriterion("available <=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableIn(List<Boolean> values) {
            addCriterion("available in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotIn(List<Boolean> values) {
            addCriterion("available not in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableBetween(Boolean value1, Boolean value2) {
            addCriterion("available between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("available not between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andActiveNameIsNull() {
            addCriterion("active_name is null");
            return (Criteria) this;
        }

        public Criteria andActiveNameIsNotNull() {
            addCriterion("active_name is not null");
            return (Criteria) this;
        }

        public Criteria andActiveNameEqualTo(String value) {
            addCriterion("active_name =", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameNotEqualTo(String value) {
            addCriterion("active_name <>", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameGreaterThan(String value) {
            addCriterion("active_name >", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameGreaterThanOrEqualTo(String value) {
            addCriterion("active_name >=", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameLessThan(String value) {
            addCriterion("active_name <", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameLessThanOrEqualTo(String value) {
            addCriterion("active_name <=", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameLike(String value) {
            addCriterion("active_name like", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameNotLike(String value) {
            addCriterion("active_name not like", value, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameIn(List<String> values) {
            addCriterion("active_name in", values, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameNotIn(List<String> values) {
            addCriterion("active_name not in", values, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameBetween(String value1, String value2) {
            addCriterion("active_name between", value1, value2, "activeName");
            return (Criteria) this;
        }

        public Criteria andActiveNameNotBetween(String value1, String value2) {
            addCriterion("active_name not between", value1, value2, "activeName");
            return (Criteria) this;
        }

        public Criteria andBannerImgIsNull() {
            addCriterion("banner_img is null");
            return (Criteria) this;
        }

        public Criteria andBannerImgIsNotNull() {
            addCriterion("banner_img is not null");
            return (Criteria) this;
        }

        public Criteria andBannerImgEqualTo(String value) {
            addCriterion("banner_img =", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgNotEqualTo(String value) {
            addCriterion("banner_img <>", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgGreaterThan(String value) {
            addCriterion("banner_img >", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgGreaterThanOrEqualTo(String value) {
            addCriterion("banner_img >=", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgLessThan(String value) {
            addCriterion("banner_img <", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgLessThanOrEqualTo(String value) {
            addCriterion("banner_img <=", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgLike(String value) {
            addCriterion("banner_img like", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgNotLike(String value) {
            addCriterion("banner_img not like", value, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgIn(List<String> values) {
            addCriterion("banner_img in", values, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgNotIn(List<String> values) {
            addCriterion("banner_img not in", values, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgBetween(String value1, String value2) {
            addCriterion("banner_img between", value1, value2, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBannerImgNotBetween(String value1, String value2) {
            addCriterion("banner_img not between", value1, value2, "bannerImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgIsNull() {
            addCriterion("background_img is null");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgIsNotNull() {
            addCriterion("background_img is not null");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgEqualTo(String value) {
            addCriterion("background_img =", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgNotEqualTo(String value) {
            addCriterion("background_img <>", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgGreaterThan(String value) {
            addCriterion("background_img >", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgGreaterThanOrEqualTo(String value) {
            addCriterion("background_img >=", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgLessThan(String value) {
            addCriterion("background_img <", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgLessThanOrEqualTo(String value) {
            addCriterion("background_img <=", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgLike(String value) {
            addCriterion("background_img like", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgNotLike(String value) {
            addCriterion("background_img not like", value, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgIn(List<String> values) {
            addCriterion("background_img in", values, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgNotIn(List<String> values) {
            addCriterion("background_img not in", values, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgBetween(String value1, String value2) {
            addCriterion("background_img between", value1, value2, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andBackgroundImgNotBetween(String value1, String value2) {
            addCriterion("background_img not between", value1, value2, "backgroundImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgIsNull() {
            addCriterion("sponsor_voucher_img is null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgIsNotNull() {
            addCriterion("sponsor_voucher_img is not null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgEqualTo(String value) {
            addCriterion("sponsor_voucher_img =", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgNotEqualTo(String value) {
            addCriterion("sponsor_voucher_img <>", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgGreaterThan(String value) {
            addCriterion("sponsor_voucher_img >", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgGreaterThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_img >=", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgLessThan(String value) {
            addCriterion("sponsor_voucher_img <", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgLessThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_img <=", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgLike(String value) {
            addCriterion("sponsor_voucher_img like", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgNotLike(String value) {
            addCriterion("sponsor_voucher_img not like", value, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgIn(List<String> values) {
            addCriterion("sponsor_voucher_img in", values, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgNotIn(List<String> values) {
            addCriterion("sponsor_voucher_img not in", values, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_img between", value1, value2, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherImgNotBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_img not between", value1, value2, "sponsorVoucherImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgIsNull() {
            addCriterion("sponsor_voucher_detail_img is null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgIsNotNull() {
            addCriterion("sponsor_voucher_detail_img is not null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgEqualTo(String value) {
            addCriterion("sponsor_voucher_detail_img =", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgNotEqualTo(String value) {
            addCriterion("sponsor_voucher_detail_img <>", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgGreaterThan(String value) {
            addCriterion("sponsor_voucher_detail_img >", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgGreaterThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_detail_img >=", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgLessThan(String value) {
            addCriterion("sponsor_voucher_detail_img <", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgLessThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_detail_img <=", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgLike(String value) {
            addCriterion("sponsor_voucher_detail_img like", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgNotLike(String value) {
            addCriterion("sponsor_voucher_detail_img not like", value, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgIn(List<String> values) {
            addCriterion("sponsor_voucher_detail_img in", values, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgNotIn(List<String> values) {
            addCriterion("sponsor_voucher_detail_img not in", values, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_detail_img between", value1, value2, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherDetailImgNotBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_detail_img not between", value1, value2, "sponsorVoucherDetailImg");
            return (Criteria) this;
        }

        public Criteria andActiveDescIsNull() {
            addCriterion("active_desc is null");
            return (Criteria) this;
        }

        public Criteria andActiveDescIsNotNull() {
            addCriterion("active_desc is not null");
            return (Criteria) this;
        }

        public Criteria andActiveDescEqualTo(String value) {
            addCriterion("active_desc =", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescNotEqualTo(String value) {
            addCriterion("active_desc <>", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescGreaterThan(String value) {
            addCriterion("active_desc >", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescGreaterThanOrEqualTo(String value) {
            addCriterion("active_desc >=", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescLessThan(String value) {
            addCriterion("active_desc <", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescLessThanOrEqualTo(String value) {
            addCriterion("active_desc <=", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescLike(String value) {
            addCriterion("active_desc like", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescNotLike(String value) {
            addCriterion("active_desc not like", value, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescIn(List<String> values) {
            addCriterion("active_desc in", values, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescNotIn(List<String> values) {
            addCriterion("active_desc not in", values, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescBetween(String value1, String value2) {
            addCriterion("active_desc between", value1, value2, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveDescNotBetween(String value1, String value2) {
            addCriterion("active_desc not between", value1, value2, "activeDesc");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateIsNull() {
            addCriterion("active_start_date is null");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateIsNotNull() {
            addCriterion("active_start_date is not null");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateEqualTo(Date value) {
            addCriterionForJDBCDate("active_start_date =", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("active_start_date <>", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateGreaterThan(Date value) {
            addCriterionForJDBCDate("active_start_date >", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("active_start_date >=", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateLessThan(Date value) {
            addCriterionForJDBCDate("active_start_date <", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("active_start_date <=", value, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateIn(List<Date> values) {
            addCriterionForJDBCDate("active_start_date in", values, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("active_start_date not in", values, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("active_start_date between", value1, value2, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveStartDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("active_start_date not between", value1, value2, "activeStartDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateIsNull() {
            addCriterion("active_end_date is null");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateIsNotNull() {
            addCriterion("active_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("active_end_date =", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("active_end_date <>", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("active_end_date >", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("active_end_date >=", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateLessThan(Date value) {
            addCriterionForJDBCDate("active_end_date <", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("active_end_date <=", value, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("active_end_date in", values, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("active_end_date not in", values, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("active_end_date between", value1, value2, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andActiveEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("active_end_date not between", value1, value2, "activeEndDate");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdIsNull() {
            addCriterion("sponsor_voucher_id is null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdIsNotNull() {
            addCriterion("sponsor_voucher_id is not null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdEqualTo(Integer value) {
            addCriterion("sponsor_voucher_id =", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdNotEqualTo(Integer value) {
            addCriterion("sponsor_voucher_id <>", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdGreaterThan(Integer value) {
            addCriterion("sponsor_voucher_id >", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sponsor_voucher_id >=", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdLessThan(Integer value) {
            addCriterion("sponsor_voucher_id <", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdLessThanOrEqualTo(Integer value) {
            addCriterion("sponsor_voucher_id <=", value, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdIn(List<Integer> values) {
            addCriterion("sponsor_voucher_id in", values, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdNotIn(List<Integer> values) {
            addCriterion("sponsor_voucher_id not in", values, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdBetween(Integer value1, Integer value2) {
            addCriterion("sponsor_voucher_id between", value1, value2, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sponsor_voucher_id not between", value1, value2, "sponsorVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdIsNull() {
            addCriterion("follow_voucher_id is null");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdIsNotNull() {
            addCriterion("follow_voucher_id is not null");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdEqualTo(Integer value) {
            addCriterion("follow_voucher_id =", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdNotEqualTo(Integer value) {
            addCriterion("follow_voucher_id <>", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdGreaterThan(Integer value) {
            addCriterion("follow_voucher_id >", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("follow_voucher_id >=", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdLessThan(Integer value) {
            addCriterion("follow_voucher_id <", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdLessThanOrEqualTo(Integer value) {
            addCriterion("follow_voucher_id <=", value, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdIn(List<Integer> values) {
            addCriterion("follow_voucher_id in", values, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdNotIn(List<Integer> values) {
            addCriterion("follow_voucher_id not in", values, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdBetween(Integer value1, Integer value2) {
            addCriterion("follow_voucher_id between", value1, value2, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andFollowVoucherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("follow_voucher_id not between", value1, value2, "followVoucherId");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleIsNull() {
            addCriterion("sponsor_voucher_title is null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleIsNotNull() {
            addCriterion("sponsor_voucher_title is not null");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleEqualTo(String value) {
            addCriterion("sponsor_voucher_title =", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleNotEqualTo(String value) {
            addCriterion("sponsor_voucher_title <>", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleGreaterThan(String value) {
            addCriterion("sponsor_voucher_title >", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleGreaterThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_title >=", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleLessThan(String value) {
            addCriterion("sponsor_voucher_title <", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleLessThanOrEqualTo(String value) {
            addCriterion("sponsor_voucher_title <=", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleLike(String value) {
            addCriterion("sponsor_voucher_title like", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleNotLike(String value) {
            addCriterion("sponsor_voucher_title not like", value, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleIn(List<String> values) {
            addCriterion("sponsor_voucher_title in", values, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleNotIn(List<String> values) {
            addCriterion("sponsor_voucher_title not in", values, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_title between", value1, value2, "sponsorVoucherTitle");
            return (Criteria) this;
        }

        public Criteria andSponsorVoucherTitleNotBetween(String value1, String value2) {
            addCriterion("sponsor_voucher_title not between", value1, value2, "sponsorVoucherTitle");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}